package org.jeecg.modules.htxincailiao.im.service.impl;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.htxincailiao.im.entity.IMConversation;
import org.jeecg.modules.htxincailiao.im.entity.IMMessage;
import org.jeecg.modules.htxincailiao.im.mapper.IMMessageMapper;
import org.jeecg.modules.htxincailiao.im.service.IIMMessageService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: im_message
 * @Author: jeecg-boot
 * @Date:   2023-03-15 09:48:23
 * @Version: V1.0
 */
@Service
public class IMMessageServiceImpl extends ServiceImpl<IMMessageMapper, IMMessage> implements IIMMessageService {

    @Override
    public IMMessage queryBy(String conversationId) {
        return baseMapper.queryBy(conversationId);
    }

    public List<IMMessage> queryByLimit( String senderId) {
        return baseMapper.queryByLimit(senderId);
    }
}
